#pragma once
#include "MultiMedia.h"
#include <vector>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <string>
#include <sstream>
using namespace std; 

class MultiMediaRegister
{
private:
	vector<MultiMedia> v;
public:
	MultiMediaRegister();
	~MultiMediaRegister();

	void addMedia(int year,string name);
	void removeMedia(int index);
	//vector<MultiMedia>::iterator findMedia(int year, string name);

	void saveToFile(string file);
	void loadFromFile(string file);
	void sortRegister(string opt);

	void print();
};

